/*
 * @Description: 首页
 * @Author: iamsmiling
 * @Date: 2021-05-23 09:22:36
 * @LastEditTime: 2021-06-09 23:27:32
 */
import 'package:credit_business_circle/R/R.dart';
import 'package:credit_business_circle/domain/local/home/home_king_kong_entity.dart.dart';
import 'package:credit_business_circle/domain/local/topic/topic_entity.dart';
import 'package:get/get.dart';

import '../app_controller.dart';

class HomeController extends GetxController {
  List<String> images = [
    "https://tse4-mm.cn.bing.net/th/id/OIP.3t8m_IXoioXh1Vn5Py_HWQHaLG?pid=ImgDet&rs=1",
    "https://tse4-mm.cn.bing.net/th/id/OIP.3t8m_IXoioXh1Vn5Py_HWQHaLG?pid=ImgDet&rs=1",
    "https://tse4-mm.cn.bing.net/th/id/OIP.3t8m_IXoioXh1Vn5Py_HWQHaLG?pid=ImgDet&rs=1"
  ];

  ///金刚区
  List<HomeKingKongEntity> kongos = [
    HomeKingKongEntity(icon: R.image.all, label: "全部"),
    HomeKingKongEntity(icon: R.image.advertiser, label: "广告主"),
    HomeKingKongEntity(icon: R.image.adPlatfrom, label: "流量主"),
    HomeKingKongEntity(icon: R.image.crossIndustryCooperation, label: "异业合作"),
    HomeKingKongEntity(icon: R.image.distributionAgent, label: "分销代理"),
    HomeKingKongEntity(icon: R.image.activityCooperation, label: "活动合作"),
    HomeKingKongEntity(icon: R.image.enterpriseService, label: "企业服务"),
    HomeKingKongEntity(icon: R.image.more, label: "更多"),
  ];

  List<TopicEntity> topics =
      List.generate(10, (index) => TopicEntity.fromJson({}));

  @override
  void onInit() {
    Future.microtask(() => showAppUpgradeDialog(Get.context!));
    super.onInit();
  }
}
